/*
 * Copyright 2012 Focus Technology, Co., Ltd. All rights reserved.
 */
package com.coderonrails.cdistr.commons.pact;

import com.coderonrails.cdistr.commons.bean.Header;

/**
 * PactServices.java
 * 
 * @author chenjianguo
 */
public interface PactServices {
    /**
     * 反序列化消息头
     * 
     * @param bytes
     * @return
     */
    public Header parseHeader(byte[] bytes);

    /**
     * 序列化消息头
     * 
     * @param header
     * @return
     */
    public byte[] createHeader(Header header);
}
